filechooser: keep file selected after being renamed
authorNelson Benítez León <nbenitezl@gmail.com>
Mon, 12 Aug 2019 21:32:56 +0000 (17:32 -0400)
committerNelson Benítez León <nbenitezl@gmail.com>
Mon, 12 Aug 2019 21:32:56 +0000 (17:32 -0400)
commit487e095d24fd9dc9bf897be772ea899db58578c1
tree40b0170e0667f5c4915b66772f22abbecbedcd8e
parentb487e8f694da5bf9c319e2da26cce4eedad11233
filechooser: keep file selected after being renamed

Because otherwise when the file list is sorted "by name"
and the new name causes the file to be re-sorted to another
row, the selection stays in the old row which is now
occupied by a different file.

Fixed by keeping track of the renamed file and revealing
it in the "row-changed" signal handler, which gets emitted
after a file is renamed.

Fixes issue #948
gtk/gtkfilechooserwidget.c